package com.zz.springboot.exception;

import com.zz.springboot.resp.enums.RespCodeEnum;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends BasicException {

    public ResourceNotFoundException(RespCodeEnum respCodeEnum) {
        this.errMsg = respCodeEnum.getErrMsg();
        this.errCode = respCodeEnum.getErrCode();
    }
}
